import request from '@/utils/request'

// 查询留言列表
export function listMessage(chatId) {
  return request({
    url: '/message/' + chatId, method: 'get'
  })
}

// 回复/发表留言
export function publishMessage(chatId, content) {
  return request({
    url: '/message', method: 'post', data: {
      chatId: chatId, content: content
    }
  })
}

// 回复/发表留言
export function blockMessage(chatId, content) {
  return request({
    url: '/message/block', method: 'post', data: {
      chatId: chatId, content: content
    }
  })
}
